#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H

#include <QDialog>
#include<QCloseEvent>

namespace Ui {
class LoginDialog;
}

class LoginDialog : public QDialog
{
    Q_OBJECT

public:
    explicit LoginDialog(QWidget *parent = 0);
    ~LoginDialog();
    void closeEvent(QCloseEvent *event);

signals:
    void SIG_loginCommit(QString tel,QString password);//登录提交
    void SIG_registerCommit(QString strTel,QString strPassword,QString strName);//注册提交
    void SIG_close();//关闭登录注册窗口

private slots:

    void on_pb_commit_log_clicked();

    void on_pb_clear_reg_clicked();

    void on_pb_commit_reg_clicked();

    void on_pb_clear_log_clicked();

private:
    Ui::LoginDialog *ui;
};

#endif // LOGINDIALOG_H
